#!/usr/bin/python
# -*- coding: utf-8 -*-
import os, sys
import monitor as mt
from django.core.servers.fastcgi import runfastcgi

sys.path.append('/home/rodrigomatias/developer/web-my-house-control/src')
sys.path.append('/home/rodrigomatias/developer/lib/python/South-0.7-py2.6.egg')

os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
os.environ['DJANGO_ENVIROMENT'] = 'developer'

mt.start(interval = 1.0)

runfastcgi(
	method = "threaded",
	daemonize = "false",
	protocol = "scgi",
        host = "127.0.0.1",
        port = 8002,
	maxrequests = 1
)


